<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    img {
      width: 100%;
      vertical-align: middle;
    }

    .row {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      justify-content: start;
    }

    /*断点
    xs:<576px
    sm:576px ~ 768px
    md:768px ~ 992px
    lg:992px ~ 1200px
    xl:>1200px
    断点怎么来的*/
    /* @media(max-width:576px) {
      .col{
        width: 100%;
      }
    }
    @media(min-width:577px) and (max-width:768px) {
      .col{
        width: 50%;
      }
    }
    @media(min-width:769px) and (max-width:992px) {
      .col{
        width: 25%;
      }
    }
    @media(min-width:993px) and (max-width:1200px) {
      .col{
        width: 16.66666%;
      }
    }
    @media(min-width:1201px){
      .col{
        width: 8.3333333%;
      }
    } */
    .col{
      width: 8.3333333%;
    }
    @media(max-width:1200px){
      .col{
        width: 16.66666%;
      }
    }
    @media(max-width:992px){
      .col{
        width: 25%;
      }
    }
    @media(max-width:768px){
      .col{
        width: 50%;
      }
    }
    @media(max-width:576px){
      .col{
        width: 100%;
      }
    }
  </style>
</head>

<body>
  <div class="row">
    <div class="col">
      <img src="1.jpg" alt="">
    </div>
    <div class="col">
      <img src="1.jpg" alt="">
    </div>
    <div class="col">
      <img src="1.jpg" alt="">
    </div>
    <div class="col">
      <img src="1.jpg" alt="">
    </div>
    <div class="col">
      <img src="1.jpg" alt="">
    </div>
    <div class="col">
      <img src="1.jpg" alt="">
    </div>
    <div class="col">
      <img src="1.jpg" alt="">
    </div>
    <div class="col">
      <img src="1.jpg" alt="">
    </div>
    <div class="col">
      <img src="1.jpg" alt="">
    </div>
    <div class="col">
      <img src="1.jpg" alt="">
    </div>
    <div class="col">
      <img src="1.jpg" alt="">
    </div>
    <div class="col">
      <img src="1.jpg" alt="">
    </div>
  </div>

</body>

</html>